var Mock = require('mockjs');

exports.response = function (req, res) {

	return Mock.mock({
		"msg": "OK",
		"code": 0,
		"data": {
			"formDate":[{
		   "time":"1",
		   "period":"一个月",
			  "object":"组合",
			  "varDate":[{
			   "confidenceLevel":"95%", 			
				  "varRate":"@float(0,10,0,2)%", 
				  "varValue":"@float(0,10,0,2)%", 
				  "esRate":"@float(0,10,0,2)%", 
				  "esValue":"@float(0,10,0,2)%",
				  "indunum":"1",
			  },
			  {
			  	"confidenceLevel":"99%",
				  "varRate":"@float(0,10,0,2)%",
				  "varValue":"@float(0,10,0,2)%",
				  "esRate":"@float(0,10,0,2)%",
				  "esValue":"@float(0,10,0,2)%",
			  }]	  
		  },{
		  	"time":"1",
			  "object":"基准",
			  "varDate":[{
			   "confidenceLevel":"95%", 			
				  "varRate":"@float(0,10,0,2)%", 
				  "varValue":"@float(0,10,0,2)%", 
				  "esRate":"@float(0,10,0,2)%", 
				  "esValue":"@float(0,10,0,2)%",
				  "indunum":"2",
			  },
			  {
			  	"confidenceLevel":"99%",
				  "varRate":"@float(0,10,0,2)%",
				  "varValue":"@float(0,10,0,2)%",
				  "esRate":"@float(0,10,0,2)%",
				  "esValue":"@float(0,10,0,2)%",
			  }]
		  },{
		   "time":"3",
		   "period":"三个月",
			  "object":"组合",
			  "varDate":[{
			   "confidenceLevel":"95%", 			
				  "varRate":"@float(0,10,0,2)%", 
				  "varValue":"@float(0,10,0,2)%", 
				  "esRate":"@float(0,10,0,2)%", 
				  "esValue":"@float(0,10,0,2)%",
				  "indunum":"3",
			  },
			  {
			  	"confidenceLevel":"99%",
				  "varRate":"@float(0,10,0,2)%",
				  "varValue":"@float(0,10,0,2)%",
				  "esRate":"@float(0,10,0,2)%",
				  "esValue":"@float(0,10,0,2)%",
			  }]	  
		  },{
		  	"time":"3",
			  "object":"基准",
			  "varDate":[{
			   "confidenceLevel":"95%", 			
				  "varRate":"@float(0,10,0,2)%", 
				  "varValue":"@float(0,10,0,2)%", 
				  "esRate":"@float(0,10,0,2)%", 
				  "esValue":"@float(0,10,0,2)%",
				  "indunum":"4",
			  },
			  {
			  	"confidenceLevel":"99%",
				  "varRate":"@float(0,10,0,2)%",
				  "varValue":"@float(0,10,0,2)%",
				  "esRate":"@float(0,10,0,2)%",
				  "esValue":"@float(0,10,0,2)%",
			  }]	  
		  },{
		   "time":"6",
		   "period":"六个月",
			  "object":"组合",
			  "varDate":[{
			   "confidenceLevel":"95%", 			
				  "varRate":"@float(0,10,0,2)%", 
				  "varValue":"@float(0,10,0,2)%", 
				  "esRate":"@float(0,10,0,2)%", 
				  "esValue":"@float(0,10,0,2)%",
				  "indunum":"5",
			  },
			  {
			  	"confidenceLevel":"99%",
				  "varRate":"@float(0,10,0,2)%",
				  "varValue":"@float(0,10,0,2)%",
				  "esRate":"@float(0,10,0,2)%",
				  "esValue":"@float(0,10,0,2)%",
			  }]	  
		  },{
		  	"time":"6",
			  "object":"基准",
			  "varDate":[{
			   "confidenceLevel":"95%", 			
				  "varRate":"@float(0,10,0,2)%", 
				  "varValue":"@float(0,10,0,2)%", 
				  "esRate":"@float(0,10,0,2)%", 
				  "esValue":"@float(0,10,0,2)%",
				  "indunum":"6",
			  },
			  {
			  	"confidenceLevel":"99%",
				  "varRate":"@float(0,10,0,2)%",
				  "varValue":"@float(0,10,0,2)%",
				  "esRate":"@float(0,10,0,2)%",
				  "esValue":"@float(0,10,0,2)%",
			  }]	  
		  },{
		   "time":"12",
		   "period":"一年",
			  "object":"组合",
			  "varDate":[{
			   "confidenceLevel":"95%", 			
				  "varRate":"@float(0,10,0,2)%", 
				  "varValue":"@float(0,10,0,2)%", 
				  "esRate":"@float(0,10,0,2)%", 
				  "esValue":"@float(0,10,0,2)%",
				  "indunum":"7",
			  },
			  {
			  	"confidenceLevel":"99%",
				  "varRate":"@float(0,10,0,2)%",
				  "varValue":"@float(0,10,0,2)%",
				  "esRate":"@float(0,10,0,2)%",
				  "esValue":"@float(0,10,0,2)%",
			  }]	  
		  },{
		  	"time":"12",
			  "object":"基准",
			  "varDate":[{
			   "confidenceLevel":"95%", 			
				  "varRate":"@float(0,10,0,2)%", 
				  "varValue":"@float(0,10,0,2)%", 
				  "esRate":"@float(0,10,0,2)%", 
				  "esValue":"@float(0,10,0,2)%",
				  "indunum":"8",
			  },
			  {
			  	"confidenceLevel":"99%",
				  "varRate":"@float(0,10,0,2)%",
				  "varValue":"@float(0,10,0,2)%",
				  "esRate":"@float(0,10,0,2)%",
				  "esValue":"@float(0,10,0,2)%",
			  }]	  
		  }],
		 "overallData":[
		 	{
		 		"object":'Var最低',
		 		"comper":"@float(0,10,0,2)%",
		 		"benper":"@float(0,10,0,2)%",
		 	},
		 	{
					"object":'日期',
		 		"comper":"2016/07/01",
		 		"benper":"2016/07/01",
		 	},
		 	{
		 		"object":'收益率最低',
		 		"comper":"@float(0,10,0,2)%",
		 		"benper":"@float(0,10,0,2)%",
		 	},
		 	{
					"object":'日期',
		 		"comper":"2016/07/02",
		 		"benper":"2016/07/02",
		 	},
		 	{
		 		"object":'Var最高',
		 		"comper":"@float(0,10,0,2)%",
		 		"benper":"@float(0,10,0,2)%",
		 	},
		 	{
					"object":'日期',
		 		"comper":"2016/07/03",
		 		"benper":"2016/07/03",
		 	},
		 	{
		 		"object":'收益率最高',
		 		"comper":"@float(0,10,0,2)%",
		 		"benper":"@float(0,10,0,2)%",
		 	},
		 	{
					"object":'日期',
		 		"comper":"2016/07/04",
		 		"benper":"2016/07/04",
		 	},
		 	{
		 		"object":'样本总数',
		 		"comper":"2222",
		 		"benper":"12",
		 	},
		 	{
					"object":'低于VaR总数',
		 		"comper":"32",
		 		"benper":"21",
		 	},
		 	{
		 		"object":'击穿率',
		 		"comper":"0.22",
		 		"benper":"1.2",
		 	},
		 ],
		 "lineData|10":[
		 	{
		 		"date":"@date(yyyy/MM/dd)",
		 		"zuhe":"@float(0,10,0,2)",
		 		"jizhun":"@float(0,10,0,2)",
		 	}
		 ]
		}
	})
}
